package com.spring;

/**
 * aop的底层就是通过 BeanPostProcessor 来实现的
 */
public interface BeanPostProcessor {
    // 初始化之前执行
    default Object postProcessBeforeInitialization(Object bean,String beanName){
        return bean;
    }

    // 初始化之后执行
    default Object postProcessAfterInitialization(Object bean,String beanName){
        return bean;
    }
}
